<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript" src="./js/qrjs2.min.js"></script>
	<script type="text/javascript" src="./js/jquery-1.7.2.min.js"></script>
</head>
<body>
<div class="erweima" id="qr1"></div>
<button onclick="inviteFriend(11)">点击</button>
<script>
	function inviteFriend(id){
//       alert(id)
		var container1 = document.getElementById('qr1');
		$('#qr1').empty();
		var svgElement = document.createElement("div"),

				u = "http://youyiku.sxnet.cc/WebApp/PhotoBooks/inviteFriend.html?photoBookId="+id,
				s = QRCode.generateSVG(u, {
					ecclevel: "M",
					fillcolor: "#FFFFFF",
					textcolor: "#373737",
//                margin: 4,
//                modulesize: 4
				});
		svgElement.appendChild(s);
		container1.appendChild(svgElement);
	}
</script>




<include file="./Apps/WebApp/View/default/common_js.html" />
</body>
</html>